def build(bld):
  bld(features     ='cxx cshlib',
      source       = 'util.cpp',
      name         = 'redsvd',
      target       = 'redsvd',
      includes     = '.')
  bld(features     ='cxx cstaticlib',
      source       = 'util.cpp',
      name         = 'redsvd',
      target       = 'redsvd',
      includes     = '.')
  bld(features     ='cxx cprogram',
      source       = 'redsvdMain.cpp redsvdFile.cpp',
      target       = 'redsvd',
      includes     = '.',
      uselib_local = 'redsvd')
  bld(features     ='cxx cprogram',
      source       = 'redsvdMainIncr.cpp redsvdFile.cpp',
      target       = 'redsvd_incr',
      includes     = '.',
      uselib_local = 'redsvd')

  bld.install_files('${PREFIX}/include/redsvd', bld.path.ant_glob('*.hpp'))
